home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / unix / c / creat < prev    next >
Text File  |  1996-11-09  |  756b  |  28 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/creat,v $
  4.  * $Date: 1996/10/30 21:59:01 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: creat,v $
  10.  * Revision 1.2  1996/10/30 21:59:01  unixlib
  11.  * Massive changes made by Nick Burret and Peter Burwood.
  12.  *
  13.  * Revision 1.1  1996/04/19 21:35:27  simon
  14.  * Initial revision
  15.  *
  16.  ***************************************************************************/
  17.  
  18. static const char rcs_id[] = "$Id: creat,v 1.2 1996/10/30 21:59:01 unixlib Rel $";
  19.  
  20. #include <fcntl.h>
  21. #include <unixlib/types.h>
  22.  
  23. int
  24. creat (const char *file, __mode_t mode)
  25. {
  26.   return open (file, O_RDWR | O_CREAT | O_TRUNC, mode);
  27. }
  28.